// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.audio.parameters;

import zombie.audio.FMODGlobalParameter;
import zombie.core.Core;

public final class ParameterMusicLibrary extends FMODGlobalParameter {
    public ParameterMusicLibrary() {
        super("MusicLibrary");
    }

    @Override
    public float calculateCurrentValue() {
        return switch (Core.getInstance().getOptionMusicLibrary()) {
            case 2 -> (float)ParameterMusicLibrary.Library.EarlyAccess.label;
            case 3 -> (float)ParameterMusicLibrary.Library.Random.label;
            default -> (float)ParameterMusicLibrary.Library.Official.label;
        };
    }

    public static enum Library {
        Official(0),
        EarlyAccess(1),
        Random(2);

        final int label;

        private Library(int int1) {
            this.label = int1;
        }
    }
}
